package com.td.module.farmer.controller.admin.management.vo;

import com.td.framework.desensitize.core.slider.annotation.MobileDesensitize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 农户土地信息 Excel 导出 Request VO", description = "参数和 ManagementPageReqVO 是一致的")
@Data
public class ManagementExportReqVO {

    @ApiModelProperty(value = "农户编码")
    private String farmerCode;

    @ApiModelProperty(value = "农户姓名", example = "赵六")
    private String name;

    @ApiModelProperty(value = "手机号")
    @MobileDesensitize
    private String mobile;

    @ApiModelProperty(value = "所种农产品类型", example = "2")
    private Integer agroProductType;

    @ApiModelProperty(value = "土地类型", example = "1")
    private Integer landType;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
